package com.example.suntest.service2;

import java.util.Collection;
import java.util.List;

/**
 * @version 1.0
 * @Package: com.example.suntest.service
 * @ClassName: PushDownConverter
 * @Author: sgq
 * @Date: 2024/7/10 16:15
 * @Description: TODD
 */
public interface PushDownConverter<S,T> {

    /**
     * 转换
     * @param source
     * @return
     */
    T convert(S source);

    /**
     * 批量转换
     * @param sources
     * @return
     */
    List<T> batchConvert(List<S> sources);

}
